using UnityEngine;
using System.Collections;

public class ChooseSongSceneScript : MonoBehaviour {
	
	public bool isButtonBack = false;
	public GUITexture buttonBack;
	
	
	AudioClip soundClick;
	
	// Use this for initialization
	void Start () {
		Object temp = Resources.Load("btn_back_normal");
		if(temp) {
			buttonBack.texture = temp as Texture;
		} else {
	
		}
	}
	
	// Update is called once per frame
	void Update () {
	
	}
	
	void OnGUI() {
	}
	
	void showScreen() {
		
	}
	
	void OnMouseDown() {
		if(isButtonBack) {
			Application.LoadLevel(Application.loadedLevel-2);
		}
	}
	
	void OnMouseEnter() {
		if(isButtonBack) {
			Object temp = Resources.Load("btn_back_select");
			if(temp) {
				buttonBack.texture = temp as Texture;
			} else {
				
			}
			
		}
	}
	
	void OnMouseExit() {
		if(isButtonBack) {
			Object temp = Resources.Load("btn_back_normal");
			if(temp) {
				buttonBack.texture = temp as Texture;	
			} else {
			}
		}
	}
}
